﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XingLucifer.IBase.Enums;

namespace UIWindows.Models.Homes
{
    /// <summary>
    /// 短路测试仪信息输出模型
    /// </summary>
    public class MessageShortCircuitModel
    {
        /// <summary>
        /// ID
        /// </summary>
        public long SnowflakeId { get; set; }
        public string BarCode { get; set; }
        public int Location { get; set; }
        public ResultTypes Result { get; set; }
        /// <summary>
        /// 壳体测试时间
        /// </summary>
        public string ResistanceTestTime { get; set; }
        /// <summary>
        /// 电极测试时间
        /// </summary>
        public string ElectrodesTestTime { get; set; }
        /// <summary>
        /// 电极测试值
        /// </summary>
        public double ElectrodesTestValue { get; set; }
        /// <summary>
        /// 壳体测试值
        /// </summary>
        public double ResistanceTestValue { get; set; }
        public int 跌落1 { get; set; }
        public int 跌落2 { get; set; }
        public int VP电压 { get; set; }
        public double 升压时间 { get; set; }
        //public int 开路结果 { get; set; }
        //public int 严重短路结果 { get; set; }
        //public int 欠压结果 { get; set; }
        //public int 过压结果 { get; set; }
        //public int 跌落1结果 { get; set; }
        //public int 跌落2结果 { get; set; }
        //public int TL结果 { get; set; }
        //public int TH结果 { get; set; }
        //public int 电阻测试结果 { get; set; }
        public int 总结果 { get; set; }
    }


    public class MessageShortCircuitRJ6901AModel
    {
        /// <summary>
        /// ID
        /// </summary>
        public long SnowflakeId { get; set; }
        public string BarCode { get; set; }
        public int Location { get; set; }
        public ResultTypes Result { get; set; }

        /// <summary>
        /// 电压
        /// </summary>
        public double VoltageTestValue { get; set; }
        /// <summary>
        /// 电阻
        /// </summary>
        public double ResistanceTestValue { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public double CurrentTestValue { get; set; }
        /// <summary>
        /// 测试耗时时间
        /// </summary>
        public double ElapsedTime { get; set; }

    }
}
